﻿package Message.Public
{
    import Framework.MQ.*;
    import Framework.Serialize.*;

    public class SArenaPlayerInfoUpdate extends IMessageBase
    {
        public var name:String;
        public var combat:int;
        public var vip:int;
        public var level:int;
        public var career:int;
        public var yyPurple:int;
        public var score:int;
        public const _type:int = 7009;
        public static var _regist:SArenaPlayerInfoUpdate = new SArenaPlayerInfoUpdate(true);

        public function SArenaPlayerInfoUpdate(param1:Boolean = false)
        {
            if (param1)
            {
                MessageManager.instance().regist(this);
            }
            return;
        }// end function

        override public function getType() : int
        {
            return this._type;
        }// end function

        override public function clone() : IMessageBase
        {
            return new SArenaPlayerInfoUpdate();
        }// end function

        override public function __write(param1:SerializeStream) : void
        {
            param1.writeString(this.name);
            param1.writeInt(this.combat);
            param1.writeInt(this.vip);
            param1.writeInt(this.level);
            param1.writeInt(this.career);
            param1.writeInt(this.yyPurple);
            param1.writeInt(this.score);
            return;
        }// end function

        override public function __read(param1:SerializeStream) : void
        {
            this.name = param1.readString();
            this.combat = param1.readInt();
            this.vip = param1.readInt();
            this.level = param1.readInt();
            this.career = param1.readInt();
            this.yyPurple = param1.readInt();
            this.score = param1.readInt();
            return;
        }// end function

    }
}
